package com.ding.state;

/*
 * @author ding
 * @date 2021/10/27 17:02:35
 */

public class DownState extends State {
    @Override
    public void stop() {
        super.context.setState(new StopState());
        super.context.getState().stop();
    }

    @Override
    public void rise() {
        System.out.println("下降过程中不能上升");
    }

    @Override
    public void down() {
        System.out.println("下降中-----");
    }

    @Override
    public void openDoor() {
        System.out.println("下降中不能开门");
    }

    @Override
    public void closeDoor() {
        System.out.println("门已经关闭");
    }
}
